package ecmnext.business.event;

/***************************************************************/
/*                     SOFTWARE SECTION                        */
/***************************************************************/
/*
 * <p>Name: ECMNext</p>
 * <p>Description: Simulation of the platform of trading Software</p>
 * <p>Licence: GNU General Public License</p>
 * <p>Organisation: EC Marseille</p>
 * <p>Persons involved in the project : groupe Plateforme de Trading</p>
 * <p>Current version: 1.0</p>
 */

/***************************************************************/
/*                 AssetEvent CLASS SECTION                    */
/***************************************************************/

/**
 * <p>Title: AssetEvent</p>
 * <p>Description : </p>
 * @author Xuewen YANG ET Antoine COUDERC
 * @version 1.0
 */


public class AssetEvent {


  public static final int ASSET_REMOVED = 0;
  public static final int ASSET_ADDED = 1;

  private String assetName;
  private int event;

  /**
   * Create an event e containing the name of the asset concerned and the kind of event which
   * has happened : a creation or a detetion of an asset.
   * @param assetName String
   * @param event int
   * @see BusinessCore and AssetListner (where used)
   */
  public AssetEvent(String assetName, int event) {
    this.assetName = assetName;
    this.event = event;
  }
  /**
   * @return String =the name of the asset
   */
  public String getAssetName() {
    return this.assetName;
  }

  /**
   * @return int (ASSET_REMOVED = 0, ASSET_ADDED = 1)
   */
  public int getEvent() {
    return this.event;
  }

}
